import org.hibernate.Session;

import util.HibernateUtil;

public class Test {
public static void main(String[] args) {
	Session session=HibernateUtil.getSessionFactory().getCurrentSession();
	Users user=new Users();
	user.setName("Holiya");
	user.setGender("female");
	user.setPassword("vkkkills");
	
	try {
		session.beginTransaction();
		session.save(user);
		session.getTransaction().commit();
	} catch (Exception e) {
		session.getTransaction().rollback();
		e.printStackTrace();
	}
	
	HibernateUtil.shutDown();
}
}
